package com.zmn.oms.dubbo.interfaces.zmn.normal.part;


import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.common.dro.part.OrderAggrPartDRO;
import com.zmn.oms.dubbo.dto.common.work.OrderPartDRO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 类描述：啄木鸟-普通单-订单配件
 *
 * @author heciqi
 * @date 2018/11/28 19:42
 */
@Api(value = "工单配件")
public interface ZsNormalOrderPartRemoteService {

	/**
	 * 根据工单列表获取配件
	 *
	 * @param workIds
	 * @param masterId
	 * @return
	 */
	@ApiOperation("通过工单ids获取配件")
	ResponseDTO<OrderAggrPartDRO> listAggrPartByWorkIds(@Size(max = 1000, message = "不能超过多少") @ApiParam("工单ID集合")
																List<Long> workIds, @ApiParam("工程师id") Integer masterId);

	/**
	 * 根据订单ID查询出配件
	 *
	 * @param orderId 订单ID
	 * @return
	 */
	@ApiOperation(value = "获取配件列表")
	ResponseDTO<List<OrderPartDRO>> listOrderPartByOrderId(@ApiParam(value = "订单ID") @NotNull(message = "订单号不能为空") Long orderId);
}
